package com.zt.ztyh.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zt.ztyh.dto.LoanDto;
import com.zt.ztyh.dto.LoanUser;
import com.zt.ztyh.entity.User;
import com.zt.ztyh.entity.ZtyhLoanUser;
import com.zt.ztyh.vo.loan.LoanVo;

import java.math.BigDecimal;
import java.util.List;

/**
* @author JIASC
* @description 针对表【ztyh_loan_user】的数据库操作Service
* @createDate 2024-04-07 14:13:07
*/
public interface ZtyhLoanUserService extends IService<ZtyhLoanUser> {


    boolean addLoan(LoanUser loanUser);

    Page<LoanVo> findUserLoan(LoanDto loanDto);

    BigDecimal findUserLoanLimit(Long uid);

    LoanUser findById(Long id);

    boolean updateLoanById(LoanUser loanUser);

    User findUserInfo(Long uid);
}
